//
//  SXReadListCollectionViewCell.m
//  ShiXun
//
//  Created by lanou on 15/10/28.
//  Copyright © 2015年 张琪. All rights reserved.
//

#import "SXReadListCollectionViewCell.h"
#import "UIImageView+WebCache.h"

@implementation SXReadListCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, kScreenWidth / 5 - 4, 60)];
        _titleLabel.textAlignment = NSTextAlignmentCenter;
        _titleLabel.numberOfLines = 0;
        _titleLabel.font = [UIFont fontWithName:@"MarkerFelt-Wide" size:15];
        _titleLabel.textColor = [UIColor colorWithHue:arc4random() % 256 / 255.0 saturation:arc4random() % 128 / 255.0 brightness:arc4random() % 128 / 255.0 alpha:1];
        [self.contentView addSubview:_titleLabel];
        
    }
    return self;
}

- (void)setConfigureModel:(SXReadListSonModel *)configureModel
{
    _configureModel = configureModel;
    
    _titleLabel.text = configureModel.tname;
}


@end
